#ifndef DHT11_H
#define DHT11_H

#include <basic.h>
#include <gpio.h>

enum
{
    DHT11_ERROR_START = 255,
    DHT11_ERROR_CHECKSUM = 254, // Error code indicating checksum mismatch.
    DHT11_ERROR_TIMEOUT = 253,
    DHT11_TIME_OUT_DELAY = 200,
    DHT11_CONSECUTIVE_DELAY = 500,
};

void dht11_Init(GPIO_Port port, GPIO_Pin pin);
uint8_t dht11_TemperatureHumidity(uint8_t *temp, uint8_t *humidity);



#endif